# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
pkgname=py3-lsp-black
_pypi_name=python-lsp-black
pkgver=1.3.0
pkgrel=0
pkgdesc="Plugin for black support in py3-lsp-server"
url="https://github.com/python-lsp/python-lsp-black"
arch="noarch !armhf !s390x"  # armhf, s390x: no py3-lsp-server
license="MIT"
depends="py3-lsp-server black"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pypi_name:0:1}/$_pypi_name/$_pypi_name-$pkgver.tar.gz"
builddir="$srcdir"/$_pypi_name-$pkgver
options="!check" # no tests

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
2c30bb7606bd4dd90cd7626621e4a291ec43b9944cd8e81f25b873df228e1480cf622e2da47492e083577e5f8708afa0e4f03fb5abfb0c702d3a453b5b18a2f5  python-lsp-black-1.3.0.tar.gz
"
